package cn.zwk.service.model;

import java.util.Collections;
import java.util.List;

/**
 * 执行报告：聚合所有执行记录，供结果写回或统计使用。
 */
public final class ExecutionReport {
    private final List<ExecutionRecord> records;

    public ExecutionReport(List<ExecutionRecord> records) {
        this.records = records == null ? List.of() : List.copyOf(records);
    }

    public List<ExecutionRecord> records() {
        return Collections.unmodifiableList(records);
    }
}

